import { defineStore } from 'pinia';

interface AssetsState {
  recharge_money: string;
  rebate_money: string;
  withdraw_money: string;
  frozen_money: string;
  left_integral: string;
  total_integral: string;
}

export const useAssetsStore = defineStore({
  id: 'assets',
  state: () =>
    <AssetsState>{
      recharge_money: '0',
      rebate_money: '0',
      withdraw_money: '0',
      frozen_money: '0',
      left_integral: '0',
      total_integral: '0',
    },
  actions: {},
  unistorage: true,
});
